package cn.huijielong.modules.sys.dao;

import cn.huijielong.modules.sys.entity.SysUserTokenEntity;

import java.util.Date;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 系统用户Token
 * 
 * @date 2017-03-23 15:22:07
 */
@Mapper
public interface SysUserTokenDao extends BaseDao<SysUserTokenEntity> {
	
	int saveToken(SysUserTokenEntity tokenEntity);
	
	int updateToken(SysUserTokenEntity tokenEntity);
    
    SysUserTokenEntity queryByUserId(@Param("userId")Long userId);

    SysUserTokenEntity queryByToken(String token);
	
}
